package com.zsw.security.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 张士伟
 * @date 2020/7/25 18:02
 **/
@ApiModel(value = "user对象",description = "用户对象user")
@Data
public class User implements Serializable {
    @ApiModelProperty(value = "用户名",name = "username" , required =false)
    private String name;
    @NotNull
    @ApiModelProperty(value = "状态",name = "id",required = true)
    private Integer age;
    @ApiModelProperty(value = "id数组")
    private String[] ids;
}
